package com.dao;
 
import java.io.IOException;
import java.util.Properties;

public class LeeProperties {
public static void main(String[] args) {
Properties info  = new Properties();
try {
//info.load(LeeProperties.class.getResourceAsStream("/org/tutorialexception/mensajes.properties"));
	
info.load(LeeProperties.class.getResourceAsStream("C://PENTA//FECU//mensajes.properties"));
String ip = info.getProperty("ip");
 
System.out.println("ip= " + ip);
} catch (IOException ex) {
System.out.println(ex);
}
}
}